package com.zzyl.controller.manager;


import com.zzyl.base.ResponseResult;
import com.zzyl.entity.eldTotal;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/work")

public class WorkController {

    @GetMapping("/elderNum")
    public ResponseResult aa(){
        eldTotal eldTotal = new eldTotal();
        eldTotal.setTotal("43");
        List<Map<Integer,String>> list = new ArrayList<>();
        Map<Integer, String> map = new HashMap<>();
        map.put(21,"外出中");
        map.put(22,"在院中");
        list.add(map);

        eldTotal.setList(list);
        return ResponseResult.success(eldTotal);
    }
}
